<?php
class GalleryAppModel extends AppModel {
	/**
	 * uniqiname for uploaded file
	 * @param $fileName
	 */
	function uniqidFileName($fileName){
		preg_match("/\.([^\.]+)$/", $fileName, $matches);
		return uniqid('store_').'.'.$matches[1];
	}
}
?>